package com.jr.service.impl;


import com.jr.entity.User;
import com.jr.dao.UserDao;
import com.jr.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 用户信息表
 *
 * @author Snoopy
 * @since 1.0.0 2022-12-31
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public int addUser(User user) {
        int i = userDao.insertUser(user);
        return i;
    }

    @Override
    public User getuser(User user) {
        return userDao.selectUser(user);
    }

    @Override
    public int modify(User user) {
        return userDao.updateUser(user);
    }
}